package com.shendu.task.domain;

public class RetVo {
	public final static int SUCCESS = 0;
	public final static int FAIL = 1;
	private Object data;
	private int status; // 0 成功 1 失败
	private String msg;

	public RetVo(Object data, int status, String msg) {
		super();
		this.data = data;
		this.status = status;
		this.msg = msg;
	}

	public RetVo(Object data) {
		this(data, SUCCESS, "");
	}

	public int getStatus() {
		return status;
	}

	public void setStatus(int status) {
		this.status = status;
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}

	public Object getData() {
		return data;
	}

	public void setData(Object data) {
		this.data = data;
	}

}
